import { useEffect } from 'react';

const UseEffectChild = () => {
   useEffect(() => {
    console.log('子组件useEffect-mounted') 
    return () => {
        console.log('子组件useEffect-unmount') 
    }
     
   })
    return (<div>
     子组件内容..
    </div> );
}
 
export default UseEffectChild;